package com.dlee.mvc.container;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * 存储资源文件配置参数
 * @author d.lee
 * @date 2012-7-25
 */
public class PropertiesContainer
{
    private static Properties systemProperties = new Properties ();
    
    public static void load(InputStream is)
    {
        try
        {
            systemProperties.load (is);
        }
        catch (IOException e)
        {
            e.printStackTrace();
        }
    }
    
    public static String getProperty(String key)
    {
        return String.valueOf (systemProperties.get (key));
    }
}
